package com.help.tools;

import com.help.model.PushMessage;

public class CheckDatas {
   public static String checkPushMessage(PushMessage pushMessage){
	   if(pushMessage==null)
		   return "unknown_error";
	   if(pushMessage.getDeviceTokens()==null||pushMessage.getDeviceTokens().equals(""))
		   return "empty_devicetokens";
	   if(pushMessage.getLatitude()==null||pushMessage.getLatitude().equals(""))
		   return "empty_latitude";
	   if(pushMessage.getLontitude()==null||pushMessage.getLontitude().equals("")){
		   return "empty_getLontitude";
	   }
	   if(pushMessage.getAddr()==null||pushMessage.getAddr().equals(""))
		   return "empty_addr";
	   if(pushMessage.getMessage()==null||pushMessage.getMessage().equals(""))
		   return "empty_message";
	   return "no_empty";
   }
}
